<?php

namespace App\Admin\Resources;

/**
 * @mixin \App\Admin\Models\SystemMedia
 */
class SystemMediaResource extends JsonResource
{
    public function toArray($request)
    {
        $data = [
            'category' => $this->whenLoaded('category'),
        ];
        return array_merge(parent::toArray($request),$data);
    }
}
